package cn.huiyunche.base.service.vo;

import cn.huiyunche.base.service.enums.WaybillStatusEnum;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class CWaybillVeneerVo implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    // 运单ID
    private Long id;

    // 运单状态
    private Integer status;

    // 运单状态描述
    private String statusText;

    // 运单code
    private String waybillCode;

    // 提车时间
    private Date shipmentDate;

    // 要求到达时间
    private Date arriveDate;

    // 运费
    private BigDecimal cost;

    // 品牌＋车型
    private List<String> branbVehicles;

    private String detail;

    // 起始地址
    private String departAddr;

    // 目的地址
    private String arrivalAddr;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusText() {
        return status == null ? "" : WaybillStatusEnum.getByValue(status).getText();
    }

    public void setStatusText(String statusText) {
        this.statusText = statusText;
    }

    public String getWaybillCode() {
        return waybillCode;
    }

    public void setWaybillCode(String waybillCode) {
        this.waybillCode = waybillCode;
    }

    public Date getShipmentDate() {
        return shipmentDate;
    }

    public void setShipmentDate(Date shipmentDate) {
        this.shipmentDate = shipmentDate;
    }

    public Date getArriveDate() {
        return arriveDate;
    }

    public void setArriveDate(Date arriveDate) {
        this.arriveDate = arriveDate;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public List<String> getBranbVehicles() {
        return branbVehicles;
    }

    public void setBranbVehicles(List<String> branbVehicles) {
        this.branbVehicles = branbVehicles;
    }

    public String getDepartAddr() {
        return departAddr;
    }

    public void setDepartAddr(String departAddr) {
        this.departAddr = departAddr;
    }

    public String getArrivalAddr() {
        return arrivalAddr;
    }

    public void setArrivalAddr(String arrivalAddr) {
        this.arrivalAddr = arrivalAddr;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "CWaybillVeneerVo [id=" + id + ", status=" + status + ", statusText=" + statusText + ", waybillCode="
                + waybillCode + ", shipmentDate=" + shipmentDate + ", arriveDate=" + arriveDate + ", cost=" + cost
                + ", branbVehicles=" + branbVehicles + ", detail=" + detail + ", departAddr=" + departAddr
                + ", arrivalAddr=" + arrivalAddr + "]";
    }

}    